﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CeA.Reports.Atendimento.DataAccess.DTO {
    [Serializable]
    public class HoraDTO {
        private int         m_id;
        private DateTime    m_hora;
        
        public HoraDTO() {          
        }

        public int Id {
            get { return m_id; }
            set { m_id = value; }
        }

        public DateTime Hora {
            get { return m_hora; }
            set { m_hora = value; }
        }

        public String HoraString { 
            get{ return m_hora.ToString("HH:mm");}
        }

        public override string ToString()
        {
            StringBuilder str = new StringBuilder();

            str.AppendFormat("[m_id={0}; ", m_id);
            str.AppendFormat(" m_hora={0}; ", m_hora);
            str.AppendFormat(" horaString={0}; ", this.HoraString);
            return str.ToString();
        }
    }
}
